package mumu.android.lib.localstorage;

import android.net.Uri;

/**
 * 新闻表
 * 
 */
public class NewsTable {

	public static final String TABLE_NAME = "news";

	public static final String COLUMN_ID = "id";
	public static final String COLUMN_NEWSID = "newsid";
	public static final String COLUMN_NEWSTITLE = "newstitle";
	public static final String COLUMN_DEFAULTLOGO = "defaultlogo";

	/**
	 * The content:// style URL for this table
	 */
	public static final Uri CONTENT_URI = Uri.parse("content://" + NewsProvider.AUTHORITY + "/" + TABLE_NAME);

	/**
	 * The content URI base for a single row of data. Callers must append a
	 * numeric row id to this Uri to retrieve a row
	 */
	public static final Uri CONTENT_ID_URI_BASE = Uri.parse("content://" + NewsProvider.AUTHORITY + "/" + TABLE_NAME + "/");

	/**
	 * The MIME type of {@link #CONTENT_URI}.
	 */
	public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.mumu.list";

	/**
	 * The MIME type of a {@link #CONTENT_URI} sub-directory of a single row.
	 */
	public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.mumu.item";
	/**
	 * The default sort order for this table
	 */
	public static final String DEFAULT_SORT_ORDER = COLUMN_ID + " DESC";

}
